a7f5e022272c60780ea907c35d6d895d5bcef4a7,forward-cat-website/app/controllers/ConfirmProxy.java,ConfirmProxy,confirm,#String#String#,38

Before Change


        // Getting the proxy
        MailAddress proxyMail = maybeProxyMail.get();
        String proxyKey = generateProxyKey(proxyMail);
        ProxyMail proxy = getProxy(proxyKey, jedisPool, mapper);
        if (proxy == null) {
            return badRequest();
        }

After Change


        // Getting the proxy
        MailAddress proxyMail = maybeProxyMail.get();
        String proxyKey = generateProxyKey(proxyMail);
        Optional<ProxyMail> maybeProxy = getProxy(proxyKey, mapper);
        if (!maybeProxy.isPresent()) {
            return badRequest();
        }

        // Checking that the hash is correct
        ProxyMail proxy = maybeProxy.get();
        String hashValue = getHash(proxy);
        if (!h.equals(hashValue)) {
            LOGGER.debug("Hash values are not equals %s - %s", h, hashValue);